import request from '../utils/request'
const api_name = '/comment'
export default {
    //获取分页评论
    getPagedList(page, limit, courseId) {
        return request({
            url: `${api_name}/list/${page}/${limit}/${courseId}`,
            method: 'get',
        })
    },
    addComment(comment) {
        return request({
            url: `${api_name}`,
            method: 'post',
            data: comment
        })
    }
}